import zhh.RoadCar;
import zhh.RoadSwitch;

import java.util.ArrayList;
import java.util.List;

/**
 * 策略模式懂的都懂，这里就不多BB了
 */

public class Main {
    public static void main(String[] args) {
        List<RoadCar> cars = new ArrayList<>();
        int count = 10;
        for (int i = 0; i < count; i++) {
            cars.add(new RoadCar());
        }
        System.out.println("车牌号列表: ");
        System.out.println(cars);
        RoadSwitch roadSwitch = new RoadSwitch();
        for (RoadCar car : cars) {
            roadSwitch.switchCar(car);
        }
    }
}